//
//  SettingViewController.h
//  Recipe
//
//  Created by bing han on 12-7-3.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol SetViewDelegate 
-(void) dissmissview;
-(void) initType;
-(void) initMenu;
@end

@interface SettingViewController : UIViewController{
    NSString *uid;
    id<SetViewDelegate> delegate;
    
    IBOutlet UIButton *updMenuBtn;
    IBOutlet UIButton *updTypeBtn;
    IBOutlet UIButton *backBtn;
    
    IBOutlet UIActivityIndicatorView *updMenuActi;
    IBOutlet UIActivityIndicatorView *updTypeActi;
    
//    IBOutlet UIProgressView *percentPrgV;
//    
//    float progressindex;
//    float progresscount;
//    NSTimer *timer;
}
//@property (nonatomic, assign) float progressindex;
//@property (nonatomic, assign) float progresscount;
//@property (nonatomic, retain) NSTimer *timer;

//@property (nonatomic, retain) IBOutlet UIProgressView *percentPrgV;
@property (nonatomic, retain) IBOutlet UIButton *backBtn;
@property (nonatomic, retain) IBOutlet UIButton *updMenuBtn;
@property (nonatomic, retain) IBOutlet UIButton *updTypeBtn;
@property (nonatomic, retain) IBOutlet UIActivityIndicatorView *updMenuActi;
@property (nonatomic, retain) IBOutlet UIActivityIndicatorView *updTypeActi;

@property (nonatomic, retain) NSString *uid;
@property (nonatomic, assign) id<SetViewDelegate> delegate;

//更新分类
-(IBAction)updateType:(id)sender;
//更新菜单
-(IBAction)updateMenu:(id)sender;
//返回
-(IBAction)doBack:(id)sender;

@end
